.class Les/bw$f;
.super Ljava/lang/Object;
.source "DbHelper.java"

# interfaces
.implements Les/bw$j;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/bw;->a(Ljava/lang/String;Ljava/util/Set;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/util/Set;

.field final synthetic b:Ljava/lang/String;

.field final synthetic c:Les/bw;


# direct methods
.method constructor <init>(Les/bw;Ljava/util/Set;Ljava/lang/String;J)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/bw$f;->c:Les/bw;

    iput-object p2, p0, Les/bw$f;->a:Ljava/util/Set;

    iput-object p3, p0, Les/bw$f;->b:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a()Z
    .locals 8

    .line 1
    iget-object v0, p0, Les/bw$f;->a:Ljava/util/Set;

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-eqz v1, :cond_2

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/dv;

    .line 2
    invoke-virtual {v1}, Les/dv;->a()Landroid/content/ContentValues;

    move-result-object v4

    const/4 v5, 0x2

    new-array v5, v5, [Ljava/lang/String;

    .line 3
    invoke-virtual {v1}, Les/dv;->f()J

    move-result-wide v6

    invoke-static {v6, v7}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v6

    aput-object v6, v5, v2

    .line 4
    invoke-virtual {v1}, Les/dv;->e()Ljava/lang/String;

    move-result-object v1

    aput-object v1, v5, v3

    .line 5
    iget-object v1, p0, Les/bw$f;->c:Les/bw;

    invoke-static {v1}, Les/bw;->a(Les/bw;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v1

    iget-object v3, p0, Les/bw$f;->b:Ljava/lang/String;

    const-string v6, "pid=? AND name=?"

    invoke-virtual {v1, v3, v4, v6, v5}, Landroid/database/sqlite/SQLiteDatabase;->update(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I

    move-result v1

    if-nez v1, :cond_1

    .line 6
    iget-object v1, p0, Les/bw$f;->c:Les/bw;

    invoke-static {v1}, Les/bw;->a(Les/bw;)Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v1

    iget-object v3, p0, Les/bw$f;->b:Ljava/lang/String;

    const/4 v5, 0x0

    invoke-virtual {v1, v3, v5, v4}, Landroid/database/sqlite/SQLiteDatabase;->insert(Ljava/lang/String;Ljava/lang/String;Landroid/content/ContentValues;)J

    move-result-wide v3

    goto :goto_0

    :cond_1
    int-to-long v3, v1

    :goto_0
    const-wide/16 v5, 0x0

    cmp-long v1, v3, v5

    if-gez v1, :cond_0

    goto :goto_1

    :cond_2
    const/4 v2, 0x1

    .line 7
    :goto_1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    return v2
.end method
